﻿using ExcellOnServices.Models;
using ExcellOnServices.Models.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace ExcellOnServices.Controllers
{
	public class HomeController : BaseController
	{

		public ActionResult Index() {
			// Retrieve Categories
			List<Category> categories = CacheHelper.getCategoryList(db);

			ViewBag.categories = (from c in categories select c).Take(4).ToList();

			return View();
		}

	}
}
